package com.share.hope.controller;

import com.share.hope.entity.result.R;
import com.share.hope.service.LikesPostsService;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/share/hope/posts_likes")
@RequiredArgsConstructor
@Tag(name = "点赞管理接口")
@CrossOrigin
public class LikesPostsController {

    private final LikesPostsService likesPostsService;

    @GetMapping("/create")
    public R<String> createLikes(@RequestParam Long userId, @RequestParam Long postsId) {
        return likesPostsService.createLikes(userId, postsId);
    }

}
